
import Taro from '@tarojs/taro'
import {View} from '@tarojs/components'
import {AtFab, AtIcon} from "taro-ui";
import PropTypes from "prop-types";
import './index.scss'

export default class Index extends Taro.Component {

  propTypes = {
    onClick: PropTypes.func.isRequired
  };

  constructor(props) {
    super(props);
  }

  render() {
    const {onClick} = this.props;

    return (
      <View className='my-fab-btn'>
        <AtFab onClick={onClick}>
          <AtIcon value='edit' />
        </AtFab>
      </View>
    );
  }
}
